package org.net.DMsg
{
	import com.gowin.Net.Structs.Property;
	
	import flash.utils.IDataInput;
	//.初始化道具（11）
//@12(short)|length(short)[typecount(short)|[name(utf)|descrip(uft)|count(short)]]...#
	public class DMsg12 extends DMsg
	{
		public var properties:Array = new Array();
		
		public function DMsg12()
		{
			id = 12;
		}
		
		public override function read(dis:IDataInput):void
		{
			var nTypes:int = dis.readShort();
			for(var i:int = 0 ; i < nTypes ; i ++)
			{
				var pro:Property = new Property();
				pro.Name = dis.readUTF();
				pro.Description = dis.readUTF();
				pro.Count = dis.readShort();
				properties[i] = pro;
			}
		}
	}
}